﻿#ifndef UDPCODEC_TEST_H
#define UDPCODEC_TEST_H

#include <qobject.h>
#include "ObjAutoInject.h"
#include "UdpCodecBase.h"

#include "LogSaver.h"

class UdpController;
class UdpCodec_Test : public QObject,public ObjAutoInject,public UdpCodecBase
{
  Q_OBJECT
private://dependency
  UdpController* udpController = Q_NULLPTR;
public:
  explicit UdpCodec_Test();
  virtual ~UdpCodec_Test();
signals:
public:
  virtual DataPackage_UdpCodec* decode(DataPackage_UdpCodec* dataPackageInfo)override;
public://geter and seter
  UdpController* getUdpController()const;
  UdpCodec_Test* setUdpController(UdpController*const udpController);
public:
  virtual void objectAutoInjection(QHash<QString,QObject*>* objMap)override;
};

#endif // UDPCODEC_TEST_H
